bootm: Align cache flush begin address
authorBryan O'Donoghue <[email protected]>
Sun, 15 Apr 2018 10:48:17 +0000 (11:48 +0100)
committerTom Rini <[email protected]>
Tue, 17 Apr 2018 21:45:08 +0000 (17:45 -0400)
commitbbac9222dcf2a4c233269e67ea38ddfb3536d85b
treebff7109c2afc9958662ee27af99fdef27ef3307c
parent721881c4178dc5ca1f201c9d9f8e86d32499666f
bootm: Align cache flush begin address

commit b4d956f6bc0f ("bootm: Align cache flush end address correctly")
aligns the end address of the cache flush operation to a cache-line size to
ensure lower-layers in the code accept the range provided and flush.

A similar action should be taken for the begin address of a cache flush
operation. The load address may not be aligned to a cache-line boundary, so
ensure the passed address is aligned.

Signed-off-by: Bryan O'Donoghue <[email protected]>
Reported-by: Breno Matheus Lima <[email protected]>
Suggested-by: Tom Rini <[email protected]>
Cc: Simon Glass <[email protected]>
Tested-by: Breno Lima <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
common/bootm.c